<template>
	<view>
		<view class="content"  :style="'height:'+screenHeight+'px !important;'">
			<addHous ref='addHous' v-on:swtichTabbar='swtichTabbar'></addHous>
		</view>
		<view v-if="is_tabbar">
			<u-tabbar :list="tabbar" :mid-button="true"></u-tabbar>
		</view>
		
	</view>
	
</template>
<script>
	import addHous from "@/components/addHous.vue"
	export default {
		components: {
			tabbar: '',
			'addHous':addHous,
			
		},
		data() { 
			return {
				screenHeight: uni.getSystemInfoSync().windowHeight,
				is_tabbar:true
			}
		},
		onLoad(options) {
			this.tabbar = getApp().globalData.tabbar;
		},
		onShow(){
			this.$nextTick(() => {
				this.$refs.addHous.getFacilities();
			})
			
		},
		methods:{
			swtichTabbar(flag){
				this.is_tabbar = flag;
			}
		}
	}
</script>
<style scoped>
	
</style>
